//
//  SEGBillHeaderViewCell.h
//  ExcellentHome
//
//  Created by 刘山 on 16/12/12.
//  Copyright © 2016年 陈区. All rights reserved.
//

//#import "SEGBaseViewCell.h"
#import <UIKit/UIKit.h>
#import "SEGBillDetailDoLogicModel.h"


static NSString* SEGBillHeaderViewCellIndentifier = @"_SEGBillHeaderViewCellIndentifier";


//账单头部展示样式
typedef NS_ENUM(NSUInteger, SEGBillHeaderViewCellType) {

    /*
     1行
     ［项目   费用(元)   缴费情况］
     */
    SEGBillHeaderViewCellType_BillDetail = 1,

    /*
     1行
     ［项目   费用(元)］
     */
    SEGBillHeaderViewCellType_BillLog = 2,

    /*
     2行，可选
     ［当月统计］
     ［项目   费用(元)］
     */
    SEGBillHeaderViewCellType_BillMonthCanCheck = 3,

    /*
     2行，不可选
     ［当月统计］
     ［项目   费用(元)］
     */
    SEGBillHeaderViewCellType_BillMonthNoCheck = 4,
    /*
     1行
     ［总计］
     */
    SEGBillHeaderViewCellType_Footer = 5,

    /*
     展示的数据，账单首页，和SEGBillHeaderViewCellType_BillDetail的样式一样
     */
    SEGBillHeaderViewCellType_Data_List = 6,
    /*
     缴费历史记录
     */

    SEGBillHeaderViewCellType_PayLog_List = 7,
    /*
      展示的数据，欠费、预缴，
     */
    SEGBillHeaderViewCellType_Data_Owe = 8,

    SEGBillHeaderViewCellType_PayLog_Footer = 9,

    SEGBillHeaderViewCellType_PayLog_DataDeatil = 10,
    
    /*
     1行，可选
     ［当月统计］
     ［项目   费用(元)］
     */
    SEGBillHeaderViewCellType_BillMonthCanCheck_SigleLine = 11,
    
    /*
     1行，不可选
     ［当月统计］
     ［项目   费用(元)］
     */
    SEGBillHeaderViewCellType_BillMonthNoCheck_SigleLine = 12,
    
    /*
     展示的数据，欠费、预缴 并且有勾选的按钮和右侧显示违约金
     */
    SEGBillHeaderViewCellType_Data_Owe_CanCheckWithPenalty = 13,
    /*
     展示的数据，欠费、预缴 并且右侧显示违约金
     */
    SEGBillHeaderViewCellType_Data_Owe_NoCheckWithPenalty = 14
};

@protocol SEGBillHeaderViewCellDelegate <NSObject>
- (void)cell_selected:(UIButton*)sender IndexPath:(NSIndexPath*)indexPath;
@end

@interface SEGBillHeaderViewCell : UITableViewCell
@property (nonatomic, assign) SEGBillHeaderViewCellType headerCellType;

@property (nonatomic, strong) NSIndexPath* indexPath;
@property (nonatomic, strong) UIView* topLineView;
@property (nonatomic, strong) UIView* lineView;
@property (nonatomic, strong) UIButton* ContentBtn;
@property (nonatomic, strong) UILabel* ContentLabel;
@property (nonatomic, strong) UILabel* ContentLabel1;
@property (nonatomic, strong) UILabel* ContentLabel2;
@property (nonatomic, strong) UILabel* ContentLabel3;
@property (nonatomic, assign) id<SEGBillHeaderViewCellDelegate> cellDelegate;

- (void)updateUIWithType:(SEGBillHeaderViewCellType)type;
- (void)setLabelStatusWithFeeStatus:(SEGBillDetailDoLogicModelFeeStatus)status WithContent:(NSString*)content ForLabel:(UILabel*)lb;
- (NSAttributedString*)stringWithAllContents:(NSString*)contents partContent:(NSString*)part;
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)reuseIdentifier WithStype:(SEGBillHeaderViewCellType)type;
- (void)cellUseFillLine;

// 缴费详情专用的布局样式
- (void)useBillDetailCellUI;
// 缴费详情专用的布局样式
- (void)useBillDetailCellUI;

@end
